﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace S.RBAC.Infrastructure
{
    public interface IBaseRepository<T> where T : class
    {
        Task<int> AddAsync(T t);

        Task<int> UpdateAsync(T t);

        Task<int> DelAsync(int id);

        Task<List<T>> GetAllAsync();

        Task<List<T>> GetListAsync(Expression<Func<T, bool>> expre);

        Task<T> GetAsync(int id);

        Task<T> GetInfoAsync(Expression<Func<T, bool>> expre);
    }
}
